﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Edit.Master" AutoEventWireup="true"
    CodeBehind="ArchiveBorrowPaperList.aspx.cs" Inherits="Web.Views.ArchiveBorrow.ArchiveBorrowView.ArchiveBorrowPaperList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../../../Javascript/UserControls.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="button" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="edit" runat="server">
    <div runat="server" id="divLend">
        <ep:EPGridView ID="gv_ArchiveBorrowPaperLend" runat="server" Width="100%" AutoGenerateColumns="False"
            OnRowDataBound="gv_ArchiveBorrowTotal_OnRowDataBound" dataSortExpression="" EnableEmptyContentRender="True"
            EnableModelValidation="True" Goto="0" GvPageCount="0" ShowCheckBox="False" DataKeyNames="DATAID">
            <Columns>
                <asp:HyperLinkField HeaderText="查看流程" Text="查看" DataNavigateUrlFormatString="../ArchiveBorrowApply/ArchiveBorrowFaildView.aspx?DataID={0}"
                    DataNavigateUrlFields="DataID" Target="_blank">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:HyperLinkField>
                <asp:HyperLinkField HeaderText="查看详细" Text="查看" DataNavigateUrlFormatString="ArchiveBorrowViewBasePage.aspx?DataID={0}"
                    DataNavigateUrlFields="DataID" Target="_blank">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:HyperLinkField>
                <asp:HyperLinkField HeaderText="借出操作" Text="借出" DataNavigateUrlFormatString="../ArchiveBorrowApprove/ArchiveBorrowDetail.aspx?DataID={0}&amp;Lend=true"
                    DataNavigateUrlFields="DataID">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:HyperLinkField>
                <asp:BoundField DataField="DataID" Visible="false" />
                <asp:BoundField HeaderText="档案类型" DataField="ArchiveTypeID" HeaderStyle-Width="15%"
                    Visible="false" />
                <asp:BoundField HeaderText="档案题名" HeaderStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="15%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="档案ID" DataField="ArchiveDataID" HeaderStyle-Width="7%"
                    Visible="false" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField HeaderText="申请单号" DataField="OrderID" HeaderStyle-Width="5%" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="申请者" DataField="CREATEUSERID" HeaderStyle-Width="5%"
                    ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="过期时间" DataField="Validperiod" HeaderStyle-Width="5%"
                    DataFormatString="{0: yyyy-MM-dd}" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="能否下载" DataField="CanDownLoad" HeaderStyle-Width="5%"
                    ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="能否浏览" DataField="Canview" HeaderStyle-Width="5%" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="是否纸质文档" DataField="IsPaperarchive" HeaderStyle-Width="5%"
                    ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="归还时间" DataField="ReturnTime" DataFormatString="{0: yyyy-MM-dd}"
                    HtmlEncode="false" HeaderStyle-Width="5%" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="是否归还" DataField="ISPaperArchiveReturn" HeaderStyle-Width="5%"
                    ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
            </Columns>
        </ep:EPGridView>
        <ep:AspNetPager SubmitButtonText=" GO " ID="pagerLend" Height="26px" Width="100%"
            CssClass="yahoo2" AlwaysShow="false" runat="server" PageSize="10" layouttype="Table"
            ShowCustomInfoSection="Right" CustomInfoClass="custom" CustomInfoStyle=" clear:both;"
            ShowPageIndexBox="Always" submitbuttonimageurl="../Images/go.png" ShowPageIndex="true"
            PageIndexBoxType="TextBox" CustomInfoHTML="第 %CurrentPageIndex% 页，共 %PageCount% 页，每页显示 %PageSize% 条，共 %RecordCount% 条">
        </ep:AspNetPager>
    </div>
    <div runat="server" id="divReturn">
        <ep:EPGridView ID="gv_ArchiveBorrowReturn" runat="server" Width="100%" AutoGenerateColumns="False"
            OnRowDataBound="gv_ArchiveBorrowTotal_OnRowDataBound" dataSortExpression="" EnableEmptyContentRender="True"
            EnableModelValidation="True" Goto="0" GvPageCount="0" ShowCheckBox="False" DataKeyNames="DATAID">
            <Columns>
                <asp:HyperLinkField HeaderText="查看流程" Text="查看" DataNavigateUrlFormatString="../ArchiveBorrowApply/ArchiveBorrowFaildView.aspx?DataID={0}"
                    DataNavigateUrlFields="DataID" Target="_blank">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:HyperLinkField>
                <asp:HyperLinkField HeaderText="查看详细" Text="查看" DataNavigateUrlFormatString="ArchiveBorrowViewBasePage.aspx?DataID={0}"
                    DataNavigateUrlFields="DataID" Target="_blank">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:HyperLinkField>
                <asp:HyperLinkField HeaderText="归还操作" Text="归还" DataNavigateUrlFormatString="../ArchiveBorrowApprove/ArchiveBorrowDetail.aspx?DataID={0}&amp;Lend=false"
                    DataNavigateUrlFields="DataID">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:HyperLinkField>
                <asp:BoundField DataField="DataID" Visible="false" />
                <asp:BoundField HeaderText="档案类型" DataField="ArchiveTypeID" HeaderStyle-Width="15%"
                    Visible="false" />
                <asp:BoundField HeaderText="档案题名" HeaderStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="15%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="档案ID" DataField="ArchiveDataID" HeaderStyle-Width="7%"
                    Visible="false" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField HeaderText="申请单号" DataField="OrderID" HeaderStyle-Width="5%" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="申请者" DataField="CREATEUSERID" HeaderStyle-Width="5%"
                    ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="过期时间" DataField="Validperiod" HeaderStyle-Width="5%"
                    DataFormatString="{0: yyyy-MM-dd}" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="能否下载" DataField="CanDownLoad" HeaderStyle-Width="5%"
                    ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="能否浏览" DataField="Canview" HeaderStyle-Width="5%" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="是否纸质文档" DataField="IsPaperarchive" HeaderStyle-Width="5%"
                    ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="归还时间" DataField="ReturnTime" DataFormatString="{0: yyyy-MM-dd}"
                    HtmlEncode="false" HeaderStyle-Width="5%" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField HeaderText="是否归还" DataField="ISPaperArchiveReturn" HeaderStyle-Width="5%"
                    ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
            </Columns>
        </ep:EPGridView>
        <ep:AspNetPager SubmitButtonText=" GO " ID="pagerReturn" Height="26px" Width="100%"
            CssClass="yahoo2" AlwaysShow="false" runat="server" PageSize="10" layouttype="Table"
            ShowCustomInfoSection="Right" CustomInfoClass="custom" CustomInfoStyle=" clear:both;"
            ShowPageIndexBox="Always" submitbuttonimageurl="../Images/go.png" ShowPageIndex="true"
            PageIndexBoxType="TextBox" CustomInfoHTML="第 %CurrentPageIndex% 页，共 %PageCount% 页，每页显示 %PageSize% 条，共 %RecordCount% 条">
        </ep:AspNetPager>
    </div>
</asp:Content>
